package com.zlp.springcloud.service;

import com.zlp.springcloud.entity.CommonResult;
import com.zlp.springcloud.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: zhulaiping
 * @Date: 2021/7/13 16:26
 */
@Component
@FeignClient("CLOUD-PAYMENT-SERVICE")
public interface FeignService {

    @GetMapping(value = "/user/get/{id}")
    CommonResult<User> getPaymentById(@PathVariable("id") Long id);
}
